package com.hqhy.like.front.order.pojo.po;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 购物车数据类
 *
 **/
@Data
@NoArgsConstructor
public class CartPO implements Serializable {

    /**
     * 商品ID
     */
    private Integer dishId;

    /**
     * 商品数量
     */
    private Integer dishNum;

    public CartPO(Object dishId, Object dishNum) {
        this.dishId = Integer.valueOf(dishId.toString());
        this.dishNum = Integer.valueOf(dishNum.toString());
    }

}
